package com.dobby.pea.entity;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单
 * @author Dobby
 * @version 1.0
 */
@Data
public class tbOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    //订单状态 1待付款，2未完成，3已完成，4已取消
    private Integer status;

    //下单用户id
    private Long userId;

    //地址id
    private Long addressBookId;

    //下单时间
    private LocalDateTime orderTime;

    //结账时间
    private LocalDateTime checkoutTime;

    //实收总金额
    private BigDecimal amount;

    //备注
    private String remark;

    //逻辑删除
    private int isDeleted;


}
